<template>
	<view class="gradens-yhrw-viewctx">
		<view class="gradens-yhrw-view-card">
			<view class="yhrw-view-list-item">
				<view class="yhrw-view-list-name">计划名称:</view>
				<text class="yhrw-view-list-text">日常任务11111111</text>
			</view>
			<view class="yhrw-view-list-item">
				<view class="yhrw-view-list-name">养护类型:</view>
				<text class="yhrw-view-list-text">日常任务2222222</text>
			</view>
			<view class="yhrw-view-list-item">
				<view class="yhrw-view-list-name">起止时间:</view>
				<text class="yhrw-view-list-text">{{date | date('yyyy/mm/dd')}} - {{date | date('yyyy/mm/dd')}}</text>
			</view>
			<view class="yhrw-view-list-item">
				<view class="yhrw-view-list-name">养护单位:</view>
				<text class="yhrw-view-list-text">曲阳xx绿化公司</text>
			</view>
			<view class="yhrw-view-list-item">
				<view class="yhrw-view-list-name">专项内容:</view>
				<text class="yhrw-view-list-text">部件专项</text>
			</view>
			<view class="" style="border-bottom: 1px solid #c5c5c5;margin-top: 20rpx;"></view>
			<view class="" style="display: flex;justify-content: space-between;">
				<view class="yhrw-view-list-item">
					<view class="yhrw-view-list-name">提交人:</view>
					<text class="yhrw-view-list-text">田某某</text>
				</view>
				<view class="yhrw-view-list-item">
					<view class="yhrw-view-list-name">提交时间:</view>
					<text class="yhrw-view-list-text">{{date | date('yyyy/mm/dd hh:MM:ss')}}</text>
				</view>
			</view>
			<view class="yhrw-view-list-item" style="align-items: flex-start;">
				
				<text class="yhrw-view-list-text" style="word-break: break-all;"><text class="yhrw-view-list-name">专项内容:</text>
				<text style="margin-left: 10rpx;">部件专2222222222项DDDDDDDD222222222222222</text>
				</text>
			</view>
			<view class="" style="display: flex;margin-top: 40rpx;">
				<button type="primary" style="width: 200rpx;" @click="goImage">查看图片</button>
				<button type="primary" style="width: 200rpx;" @click="submit">导出</button>
			</view>
		</view>
	</view>
</template>

<script>


	export default {
		data() {
			return {
				date: new Date(),
				// showCalendar: false,

				formData:{
					tb_nr:'',
					jidu:'',
					image:''
				},
				rules: {
					tb_nr: {
						rules: [{
							required: true,
							errorMessage: '不能为空',
						}]
					},
					// 对name字段进行必填验证
					jidu: {
						rules: [{
								required: true,
								errorMessage: '不能为空',
							},
							{
								minLength: 3,
								maxLength: 10,
								errorMessage: '姓名长度在 {minLength} 到 {maxLength} 个字符',
							}
						]
					},
					// 对email字段进行必填验证
					email: {
						rules: [{
							format: 'email',
							errorMessage: '请输入正确的邮箱地址',
						}]
					}
				}
			}
		},

		methods: {
			goImage () {
				uni.navigateTo({
					url:'/pages/gardens/yhrw/zximage'
				})
			},
			backClick () {
				uni.navigateBack()
			},
			submit() {
				// this.$refs.form.validate().then(res => {
				// 	console.log('表单数据信息：', res);
				// }).catch(err => {
				// 	// console.log('表单错误信息：', err);
				// 	// this.$u.toast('查询条件为空，查询错误')
				// })
			}

		}
	}
</script>

<style lang="scss">
	$nav-height: 30px;

	.box-bg {
		background-color: #F5F5F5;
		padding: 5px 0;
	}

	.city {
		/* #ifndef APP-PLUS-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		// width: 160rpx;
		margin-left: 4px;
	}

	.input-uni-icon {
		line-height: $nav-height;
	}

	.gradens-yhrw-view-card {
		box-sizing: border-box;
		padding: 10rpx 10px;
	}

	.gradens-yhrw-viewctx {
		.yhrw-view-list-item {
			display: flex;
			padding-top: 20rpx;
			align-items: center;

			.yhrw-view-list-name {
				width: 125rpx;
			}

			.yhrw-view-list-text {
				flex: 1;
			}
		}
	}
</style>